#include<iostream>
using namespace std;

void _hash(unsigned int& Hash,unsigned int x){
    Hash+=x;
}

int main(){
    freopen("input","r",stdin);
    freopen("output","w",stdout);
    ios::sync_with_stdio(false);
    int n,x;unsigned int Hash=0;
    cin >> n;
    for(int i=1;i<=n;i++){
        cin >> x;
        _hash(Hash,x);
    }
    cout << Hash;
}